import React from 'react'
import ReactDOM from 'react-dom'
import './static/css/index.css'
import App from './App'
import { Provider } from 'react-redux'
import { BrowserRouter} from 'react-router-dom'
import store from './store/store'
ReactDOM.render(
  <Provider store={store}>
    <BrowserRouter>
      <App />
    </BrowserRouter>
    </Provider>
 ,
  document.getElementById('root')
)
store.subscribe(() => {
  ReactDOM.render(
    <Provider store={store}>
      <BrowserRouter>
        <App />
      </BrowserRouter>
      </Provider>
   ,
    document.getElementById('root')
  )
})